Discussion:
Trouble when editing a Debian wiki page
(too old to reply)
Franco Martelli
2024-07-24 13:30:01 UTC
Permalink
Hi,

I've added <<TableOfContents(3)>> (the index of all paragraphs inside
the wiki page) directive to this wiki page:

https://wiki.debian.org/EnvironmentVariables

The trouble is that the page has lost indentation, the text begins on
the left side of the page.
In addition when I'm in editing mode and I click the "Preview" button
the page shown has indentation, so it looks like all OK (there is space
between the left border of the window and the text) but when I click
"Save changes" the text is on the left of the window (no indentation).

Looks to this other page to see text placed correctly as example:

https://wiki.debian.org/Permissions

Could anybody tell me what I did wrong?

Cheers
--
Franco Martelli
Greg Wooledge
2024-07-24 13:40:01 UTC
Permalink
Post by Franco Martelli
https://wiki.debian.org/EnvironmentVariables
The trouble is that the page has lost indentation, the text begins on the
left side of the page.
The only part that was indented was the table of contents itself. I
fixed that.
Post by Franco Martelli
Could anybody tell me what I did wrong?
You had a leading space before the << tag. That caused the TOC to be
indented. I removed that.
Franco Martelli
2024-07-24 18:10:01 UTC
Permalink
Post by Greg Wooledge
Post by Franco Martelli
Could anybody tell me what I did wrong?
You had a leading space before the << tag. That caused the TOC to be
indented. I removed that.
Oh, Thank you very much Greg, what confused me it was the page that I
took as reference:

https://wiki.debian.org/Permissions?action=raw

here there's a space before the << tag and, as I said, clicking on the
"Preview" button when in edit mode, it didn't help.

Thanks again, cheers
--
Franco Martelli
Greg Wooledge
2024-07-24 18:20:01 UTC
Permalink
Post by Greg Wooledge
Post by Franco Martelli
Could anybody tell me what I did wrong?
You had a leading space before the << tag. That caused the TOC to be
indented. I removed that.
Oh, Thank you very much Greg, what confused me it was the page that I took
https://wiki.debian.org/Permissions?action=raw
here there's a space before the << tag and, as I said, clicking on the
"Preview" button when in edit mode, it didn't help.
Well, the table of contents is indented on that page as well.

It sounds like you're ... not seeing what I'm seeing, though. I checked
in both Chrome and Firefox, and everything looks fine, assuming you
don't mind the TOC being indented.

Are you seeing something *else*? In what browser?
Franco Martelli
2024-07-24 19:10:01 UTC
Permalink
Post by Greg Wooledge
Post by Franco Martelli
https://wiki.debian.org/Permissions?action=raw
here there's a space before the << tag and, as I said, clicking on the
"Preview" button when in edit mode, it didn't help.
Well, the table of contents is indented on that page as well.
It sounds like you're ... not seeing what I'm seeing, though. I checked
in both Chrome and Firefox, and everything looks fine, assuming you
don't mind the TOC being indented.
Are you seeing something*else*? In what browser?
I'm using firefox-esr version: 115.13.0esr-1~deb12u1

Here I see the TOC not indented (no space before << tag):

https://wiki.debian.org/EnvironmentVariables?action=raw

Here instead I see the TOC indented (a space before << tag):

https://wiki.debian.org/Permissions?action=raw

Both pages have the text indented correctly in the browser, thus it
looked strange to me that removing the leading space before the << tag
fixed the issue. Am I missing something else?

P.S.
half an hour and I'm going to sleep
--
Franco Martelli
Max Nikulin
2024-07-25 03:00:01 UTC
Permalink
Post by Franco Martelli
I'm using firefox-esr version: 115.13.0esr-1~deb12u1
https://wiki.debian.org/EnvironmentVariables?action=raw
https://wiki.debian.org/Permissions?action=raw
Both pages have the text indented correctly in the browser, thus it
looked strange to me that removing the leading space before the << tag
fixed the issue. Am I missing something else?
https://wiki.debian.org/EnvironmentVariables?action=raw&rev=33

has one empty line after "<<TableOfContents(3)>>" while rev=22 has 2
empty lines and it may be more significant than a space before "<<".

The Permissions article has an extra space in the translations line
causing extra indentation due to rather weird markup

<table style="&amp;quot; width: 100%; &amp;quot;">

Another MoinMoin issue that it renders "= Header =" as <h1>.
EnvironmentVariables minimal header level is 2 while Permissions has
multiple <h1> elements

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#avoid_using_multiple_h1_elements_on_one_page
Greg Wooledge
2024-07-25 03:50:02 UTC
Permalink
Post by Max Nikulin
https://wiki.debian.org/EnvironmentVariables?action=raw&rev=33
has one empty line after "<<TableOfContents(3)>>" while rev=22 has 2 empty
lines and it may be more significant than a space before "<<".
I assume you mean "while rev=32". I removed the extra blank line at
the same time I removed the leading space. The leading space causes
indentation, but a blank line should just be ignored when rendering
the HTML. It has no significance in the final appearance.
Post by Max Nikulin
The Permissions article has an extra space in the translations line causing
extra indentation due to rather weird markup
<table style="&amp;quot; width: 100%; &amp;quot;">
I don't touch the translation stuff. Whatever the Debian translation team
wants to do, I let them do it. If the wiki markup for the translations
table is broken, someone on that team will have to be the one to fix it.

I feel sympathy for anyone who's trying to translate a wiki page that
keeps changing. I can only imagine how much effort that must be.

I suspect that part of the reason the Debian wiki doesn't get updated as
often as it probably should is because people don't want to create extra
work for the translators.
Franco Martelli
2024-07-25 13:50:01 UTC
Permalink
Yeah... I have to use a Private window (Firefox) or an Incognito window
(Chrome) to duplicate this. If I'm using my regular browser sessions
where I'm logged in to the wiki, I don't get that result.
When in editing mode by clicking "Preview" button it shows the page with
indentation (all looks OK) but when saving the changes by clicking "Save
Changes" button then the page lost indentation (no margin).
This it happened to me when I added the TOC to EnvironmentVariables

Cheers
--
Franco Martelli
d***@howorth.org.uk
2024-07-25 14:40:02 UTC
Permalink
Post by Franco Martelli
Yeah... I have to use a Private window (Firefox) or an Incognito
window (Chrome) to duplicate this. If I'm using my regular browser
sessions where I'm logged in to the wiki, I don't get that result.
When in editing mode by clicking "Preview" button it shows the page
with indentation (all looks OK) but when saving the changes by
clicking "Save Changes" button then the page lost indentation (no
margin). This it happened to me when I added the TOC to
EnvironmentVariables
Cheers
And now the server is mostly giving "503 Service Unailable" with the
occasional very slow service of a page.
Steve McIntyre
2024-07-26 01:30:02 UTC
Permalink
Post by d***@howorth.org.uk
Post by Franco Martelli
Yeah... I have to use a Private window (Firefox) or an Incognito
window (Chrome) to duplicate this. If I'm using my regular browser
sessions where I'm logged in to the wiki, I don't get that result.
When in editing mode by clicking "Preview" button it shows the page
with indentation (all looks OK) but when saving the changes by
clicking "Save Changes" button then the page lost indentation (no
margin). This it happened to me when I added the TOC to
EnvironmentVariables
Cheers
And now the server is mostly giving "503 Service Unailable" with the
occasional very slow service of a page.
Yes, we had a bit of a DoS happen this afternoon. :-(
--
Steve McIntyre, Cambridge, UK. ***@einval.com
Can't keep my eyes from the circling sky,
Tongue-tied & twisted, Just an earth-bound misfit, I...
Max Nikulin
2024-07-25 12:00:01 UTC
Permalink
Post by Greg Wooledge
Post by Max Nikulin
https://wiki.debian.org/EnvironmentVariables?action=raw&rev=33
has one empty line after "<<TableOfContents(3)>>" while rev=22 has 2 empty
lines and it may be more significant than a space before "<<".
I assume you mean "while rev=32". I removed the extra blank line at
the same time I removed the leading space. The leading space causes
indentation, but a blank line should just be ignored when rendering
the HTML. It has no significance in the final appearance.
A space before " <<TableOfContents(3)>>" combined with 2 empty lines
after cause extra "</div>" closing <div id="content"> before following
text. So most of article text has no left margin.

https://wiki.debian.org/WikiSandBox?action=recall&rev=144
https://wiki.debian.org/EnvironmentVariables?action=recall&rev=32
Post by Greg Wooledge
Post by Max Nikulin
The Permissions article has an extra space in the translations line causing
extra indentation due to rather weird markup
<table style="&amp;quot; width: 100%; &amp;quot;">
I don't touch the translation stuff.
I just compared markup of 2 pages and generated HTML. Firefox highlights
invalid elements in view-source:. I have realized that a space may be a
red herring here. Permissions explicitly adds table while
EnvironmentVariables uses just small text.
Greg Wooledge
2024-07-25 13:10:01 UTC
Permalink
Post by Max Nikulin
https://wiki.debian.org/EnvironmentVariables?action=recall&rev=32
[...]
I can't quite guess what "text has no left margin" means here.
Firefox-115, see the attachment. Notice that "General", unlike table of
contents, is not separated from window border by 52px margin.
Yeah... I have to use a Private window (Firefox) or an Incognito window
(Chrome) to duplicate this. If I'm using my regular browser sessions
where I'm logged in to the wiki, I don't get that result.
Greg Wooledge
2024-07-25 12:20:02 UTC
Permalink
A space before " <<TableOfContents(3)>>" combined with 2 empty lines after
cause extra "</div>" closing <div id="content"> before following text. So
most of article text has no left margin.
https://wiki.debian.org/WikiSandBox?action=recall&rev=144
https://wiki.debian.org/EnvironmentVariables?action=recall&rev=32
So, a bug in MoinMoin -- not a huge shock.

But y'all are still seeing something other than what I'm seeing. I guess
my browsers are just ignoring the invalid HTML and giving me a page that
looks fine, while some of you are seeing... I don't know what. I can't
quite guess what "text has no left margin" means here.

Oh -- if I do it in a Chrome Incognito window, I get different results.

So, I guess being logged in to the wiki changes the HTML just enough to
work around the bugs, to the point where most editors aren't aware that
there *is* a bug, because we're all logged in. Or there's something
else in my normal browser environment, which is absent in Incognito,
which works around this particular bug.

Weird.

Loading...