[opensuse-wiki] Missing <p> tags
Hello, I just noticed that in some cases the <p> tags are not rendered in wiki.o.o, which results in not-so-nice output. Example: http://wiki.opensuse.org/openSUSE:Build_Service_Debian_builds#Patch_format Wikitext of this section (only the broken paragraph): xUbuntu 6.06 additionally doesn't allow content after the <tt>@@..@@</tt> line. E.g. <pre>@@ -37,7 +37,7 @@ openvas-libraries.tmpl: openvas-librarie</pre> will fail while <pre>@@ -37,7 +37,7 @@</pre> will work just fine. Simply removing the content after the second <tt>@@</tt> should solve this. Resulting HTML: xUbuntu 6.06 additionally doesn't allow content after the <tt>@@..@@</tt> line. E.g. <pre>@@ -37,7 +37,7 @@ openvas-libraries.tmpl: openvas-librarie</pre> will fail while <pre>@@ -37,7 +37,7 @@</pre> will work just fine. Simply removing the content after the second <tt>@@</tt> should solve this. -> the paragraph is not wrapped in <p> / </p> We could discuss if nesting <pre> tags in a paragraph is good style and/or valid HTML (IMHO not really), but it still shouldn't break the margin-left ;-) Regards, Christian Boltz -- "Der Unterschied zwischen einem Windows- und Linux-User ist der, daß ein Linux-User lesen kann!" [Frank Gerd Walzebuck in suse-linux] -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org
On Wednesday 07 July 2010 18:29:58 Christian Boltz wrote: ...
We could discuss if nesting <pre> tags in a paragraph is good style and/or valid HTML (IMHO not really), but it still shouldn't break the margin-left ;-)
I just spoiled you example. <pre> is now on separate line and paragraph is rendered correctly :) Your example is now: http://wiki.opensuse.org/index.php?title=openSUSE:Build_Service_Debian_build... -- Regards Rajko, -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org
Hello, on Donnerstag, 8. Juli 2010, Rajko M. wrote:
On Wednesday 07 July 2010 18:29:58 Christian Boltz wrote:
We could discuss if nesting <pre> tags in a paragraph is good style and/or valid HTML (IMHO not really), but it still shouldn't break the margin-left ;-)
I just spoiled you example. <pre> is now on separate line and paragraph is rendered correctly :)
Actually a space at the beginning of the line does the same job, and is better wikitext ;-) But that is not the real point. The thing is that nobody should be able to break the margin-left, even with "funny" code. The perfect solution would be to have padding in the page content area instead of having margin on all page content elements. (Or are there cases where it's really wanted that a content element is close to the content area box? If yes, please speak up *now* or remain silent forever ;-) I did not check the complete CSS, but for me it looks like this CSS (base.css line 159) h1, h2, h3, h4, h5, h6, p, ul, ol, table, pre, blockquote, .box small { margin-left:15px; margin-right:15px; } should be removed and instead this should be added: (.alpha and .omega are defined in grid.css line 72/77) .alpha { padding-left:15px; padding-right:15px; } - or - .omega { padding-left:15px; padding-right:15px; } I have no idea if .alpha or .omega fits better (and why there are two classes) - both should work. Sidenote: IIRC there's the issue that <div> boxes have to be width:96% instead of 100%. This should be solved after this change - but this also means that the code of these boxes has to be changed. Regards, Christian Boltz -- | Yes, I know. But there are even conjobs running as user games? Sometimes when cron is bored he starts playing games, didn't you know? ;-) [Aschwin Marsman and Robert Schiele opensuse] -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org
On Sunday 11 July 2010 11:25:34 Christian Boltz wrote:
Sidenote: IIRC there's the issue that <div> boxes have to be width:96% instead of 100%. This should be solved after this change - but this also means that the code of these boxes has to be changed.
Still, not a big deal, but in a year it can be ;) -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org
participants (2)
-
Christian Boltz
-
Rajko M.