Commit graph

12 commits

Author SHA1 Message Date
Arlo Breault 3cc0dd4e6e Hook up Parsoid implementation of Poem
Bug: T358054
Change-Id: Iac1378b1761842e5c2b82129abb191fbf16d829c
2024-02-27 22:31:51 -05:00
C. Scott Ananian 44caab4c88 Sync up Poem repo with Parsoid
This now aligns with Parsoid commit 5c6d948979bba6b58db13790cf3afcc883fe4ff6

Change-Id: Ib9857cd89f43a35d19ed37712a5134f4a1696c10
2022-10-12 14:50:23 -04:00
C. Scott Ananian 6a12103aa8 Sync up with Parsoid poemParserTests.txt
This now aligns with Parsoid commit 819630e57c646038215a144fc03e6e9c29c12328

Change-Id: I5fbb3175e330ba968f749e08f42734a3b54f59db
2021-12-10 14:36:40 -05:00
C. Scott Ananian 5337f7927a Sync up with Parsoid poemParserTests.txt
This now aligns with Parsoid commit 7321ab547b7663ba86c1cfe0bc021ff1918c0970

Change-Id: I046691873d024d86b0fd33122cf866479fa709dd
2020-07-15 11:42:37 -04:00
Huji Lee 50d6f5b39b Indentation should be based on content directionality
This will knowingly not work for Internet Explorer, as the only
major browser that does not support margin-inline-start

Bug: T254051
Change-Id: I1db5dd165bc21eca49746cc6981c2fbd44d9a7f2
2020-06-25 15:37:58 -04:00
Thiemo Kreuz 28006eef6c Fix indention syntax for empty ::: without no text
Before, the behavior on ::: with no text after the colons was very
unexpected. The last colon was not considered syntax, but became
visible as plain text. This is not how the ::: syntax behaves outside
of <poem> tags.

There are multiple ways to solve this:
* Use all ::: for the indention. However, what's the point of
  indenting *nothing*?
* Remove the ::: and display an empty line. However, why should we
  silently *remove* syntax that was put there for a reason?
* Do nothing, and let the Parser decide. This is what this patch does.

The extra ++ is a "possessive quantifier". It disables backtracking
at this point.

Change-Id: I2e046ed40121b5d78f3361b3e263f3a561c83a71
2020-06-12 18:17:33 +00:00
C. Scott Ananian abd0672045 Update Poem parserTests to v2 (tidy by default)
Bug: T249139
Change-Id: I9c8acb05fdf2c79f618f0f317d511df77f26ec3b
2020-04-01 13:10:28 -04:00
C. Scott Ananian f8efe714c7 Sync up with Parsoid poemParserTests.txt
This now aligns with Parsoid commit b4f56a9d2786d9cb98bdc352a72597c5d8d4f849

Change-Id: Ib5d77a2038fcab9b4751291507f429c013eed2aa
2020-04-01 13:04:14 -04:00
jenkins-bot a8932c74bd Merge "No <br /> tag after <hr /> tag to avoid extra space" 2018-06-05 15:10:00 +00:00
Subramanya Sastry bc7b145051 Update parsertests to use newer test format + tidy html always
Change-Id: I7f04dc28d11048c2b5794b1ef27d08cde1e62f13
2018-05-22 08:35:20 -05:00
Thiemo Mättig 1f6bce0d49 No <br /> tag after <hr /> tag to avoid extra space
if <br /> tag is present after <hr />tag this change replaces both with <hr /> tag. as per Thiemo's patch I8021b2c sugesstions.

Bug: T124144
Change-Id: I9239da4538e189fc825e72668a3cbd8325ac2ca4
2018-05-18 13:19:57 +00:00
Jayprakash12345 2ad483d747 Move parser tests file to normal location and add a styled one
Bug: T188527
Change-Id: Ib5023c7656e7f27ba58a99da3c2659e18674ac5a
2018-03-05 18:29:56 +00:00