Topic on Extension talk:Popups

stripping of line breaks

3
146.52.159.94 (talkcontribs)

Hi

on our company wiki we have a page for each user with their info (mail, room, phone etc.) in the top of the page.


The generated popups have the line breaks stripped from the info, which makes it hard to read


should look like this:

phone

room

mail

department


but does look like this:

phone room mail dep

artment


i spent hours fiddling with templates and modules to implement some kiond of padding with dots and/or invisible non-zero-length characters but have had no luck so far in making this work for all user (or even one)

I appreciate any kind of help

~~robert

Thiemo Kreuz (WMDE) (talkcontribs)

I think there is currently no way to influence the formatting in the popup, except you make changes to the code of the Popups extension, and probably the TextExtracts extension as well. Since T233099 it should also be possible to inject new popup types from your own extension.

146.52.159.94 (talkcontribs)

Hi Thiemo, Thanks for the pointer.


I'm wondering what part of Popups would need to be changed. TextExtracts does include the br elements in the summary. Where do they get stripped?


~~robert

Reply to "stripping of line breaks"