• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wikimedia / parsoid / 758
85%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2015 10:50PM UTC
Jobs 4
Files 73
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
758

push

travis-ci

subbuss
Fix sol handling in separators + tag handler cleanup

* Only /\n$/ puts serializer in SOL-state, not /\n\s*$/.

* However, fixing this bug exposed another fairly serious one.
  NL constraints for various HTML tags don't indicate whether
  the wikitext for the HTML tags should force SOL state by stripping
  excess whitespace characters at the start of line.

[subbu@earth lib] echo "<ul>\n<li>a</li>\n <li>b</li></ul>" | node parse
--html2wt
* a
 * b

  This is clearly a bug. The reason we didn't trip over it all this
  while is because 'make-indent-pre' stripped the excess whitespace
  to prevent indent-pre-ing the content. However, that is a scenario
  of one bug papering over another bug.

* This patch also introduces a new flag in tag handlers.
  Tags can declare if they force SOL state on separators.
  This flag is used to suppress non-nl whitespace before emitting wikitext
  for those tags.

* The fly-in-the-ointment there were some tags that have different
  behavior in different contexts. Ex: ";a:b" vs ";a\n:b". The <dd> tag
  in the second example forces SOL context but not the former. Added
  additional handling to deal with this scenario.

  However, this also led to some nice code cleanup in the tag handlers.

* No net parser test changes after all these fixes.

Change-Id: I7a5ccd33b

12623 of 15027 relevant lines covered (84.0%)

84446.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 758.1 30 Oct 2015 10:52PM UTC 0
83.96
Travis Job 758.1
2 758.2 30 Oct 2015 10:50PM UTC 0
84.0
Travis Job 758.2
3 758.3 30 Oct 2015 10:50PM UTC 0
83.92
Travis Job 758.3
4 758.4 30 Oct 2015 10:55PM UTC 0
83.92
Travis Job 758.4
Source Files on build 758
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #758
  • f0d77afc on github
  • Prev Build on master (#757)
  • Next Build on master (#759)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc