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

osteele / liquid / 149
49%
master: 49%

Build:
Build:
LAST BUILD BRANCH: sgargan/whitespace-handling
DEFAULT BRANCH: master
Ran 20 Apr 2019 12:20PM UTC
Jobs 2
Files 48
Run time 28s
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

20 Apr 2019 12:18PM UTC coverage: 49.374% (-39.8%) from 89.183%
149

Pull #36

travis-ci

web-flow
Modify whitespace trimming to be less hungry

The liquid spec is a little vague about quite how greedy whitespace
trimming should be. Currently handling here will eat any available
whitespace between tags including all newline characters
e.g.
```
(

{%- sometag -%}

)
```
will render as
```
()
```
This is ok for web markup where the whitespace is not important, but for
other document types this greedy consumption is problematic.

Ideally the ws trimming would be less hungry and only trim any whitespace
on the line containing the tag up to and including it's newline, essentially
removing any trace of the tag but leaving other lines intact rendering the above as
```
(

)
```

The change here detects whitespace as tokens as they are parsed and
discards any as indicated by the trimming directives up to an including
the first newline.
Pull Request #36: Modify whitespace trimming to be less hungry

55 of 55 new or added lines in 5 files covered. (100.0%)

1301 of 2635 relevant lines covered (49.37%)

745.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 149.1 20 Apr 2019 12:20PM UTC 0
89.39
Travis Job 149.1
2 149.2 20 Apr 2019 12:20PM UTC 0
49.37
Travis Job 149.2
Source Files on build 149
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #149
  • Pull Request #36
  • PR Base - master (#143)
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

© 2025 Coveralls, Inc