https://bugzilla.wikimedia.org/show_bug.cgi?id=38800
Web browser: --- Bug #: 38800 Summary: Tidy should not insert newlines between <div class="mw-code"> and other elements. Product: MediaWiki Version: unspecified Platform: All OS/Version: All Status: NEW Severity: major Priority: Unprioritized Component: User interface AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: krinklem...@gmail.com CC: krinklem...@gmail.com, roan.katt...@gmail.com Classification: Unclassified Mobile Platform: --- Created attachment 10902 --> https://bugzilla.wikimedia.org/attachment.cgi?id=10902 Screenshot of Tidy bug Steps to reproduce: * Install MediaWiki 1.20alpha + SyntaxHighlight_GeSHi extension * Make sure $wgUseTidy is not set to true in LocalSettings.php (just in case) * Create a page with <syntaxhighlight source="php">foo();</syntaxhighlight> * View source of the saved page: <div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="javascript source-javascript"><pre class="de1">foo [..] The page looks fine. * Now enable $wgUseTidy (requires that your server has tidy installed) * View source of the saved page: <div dir="ltr" class="mw-geshi mw-code mw-content-ltr"> <div class="javascript source-javascript"> <pre class="de1"> foo<span class="br0">( [..] This is problematic since elements that preserve whitespace (which can be any element, there is no way to tell from the source code - this is determined by css) will now show up to 3 more new lines before the word "foo". I've been looking around in the Tidy configuration, but can't find a way to disable this. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l