Last modified: 2014-09-12 20:17:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52104, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50104 - Parsoid strips exclamation mark when it's at the start of a line
Parsoid strips exclamation mark when it's at the start of a line
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
https://www.mediawiki.org/wiki/User:C...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-24 15:18 UTC by Jesús Martínez Novo (Ciencia Al Poder)
Modified: 2014-09-12 20:17 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jesús Martínez Novo (Ciencia Al Poder) 2013-06-24 15:18:52 UTC
When a line starts with an exclamation mark, parsoid removes the exclamation mark, and also when there's a space before the exclamation mark (it respects the space).

For example:

INPUT:

!1

OUTPUT:

1

INPUT:

 !1

OUTPUT:

<nowiki> 1</nowiki>

See URL for example.

I discovered it reviewing this edit:

http://www.mediawiki.org/w/index.php?diff=716121

I don't know if the "General" component is correct.
Comment 1 Gabriel Wicke 2013-06-24 17:29:39 UTC
This is a side effect of the way we support template syntax even outside a table context. This tokenizes to a table heading, which is then dropped while building the DOM as it is not wrapped into a table.

We should still be able to support this by adding a pass that checks for dropped table headings on the DOM based on the shadow metas and converts them back to text.
Comment 2 ssastry 2014-09-12 20:17:44 UTC
This has been fixed a while back.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links