https://bugzilla.wikimedia.org/show_bug.cgi?id=28988

       Web browser: ---
             Bug #: 28988
           Summary: html of table.diff cells contains terminal white-space
                    not in source text
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: History/Diffs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


i set this in my personal css to make my diff view resemble the editform,
namely to make the number and type of spaces apparent in each line.
> .diff-addedline, .diff-deletedline, .diff-context
>     { font-family:monospace; white-space:pre-wrap; }

but i did not count on the html of these cells containing superfluous carriage
returns and spaces. due to my css, the \n's became visible as blank lines at
the start and end of each cell and two extra spaces appeared at the end.

i.e. "CONTENT" is represented as "\nCONTENT\n  ".

see, the outputted html looks like this:
>   <td class="diff-deletedline"><div>
> FIVE→     ←SPACES
>   </div></td>

whereas the following would be ideal:
>   <td class="diff-deletedline"><div>FIVE→     ←SPACES</div></td>

of course, all white-space actually present in each line of wiki-text should
remain so.

(i don't know the purpose of adding a div tag with no attributes to each cell,
but that's another matter.)

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to