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

osteele / liquid / 148
49%
master: 49%

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

19 Apr 2019 11:40PM UTC coverage: 49.206% (-40.0%) from 89.183%
148

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

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

1301 of 2644 relevant lines covered (49.21%)

742.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 148.1 19 Apr 2019 11:42PM UTC 0
89.06
Travis Job 148.1
2 148.2 19 Apr 2019 11:42PM UTC 0
49.21
Travis Job 148.2
Source Files on build 148
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #148
  • 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

© 2026 Coveralls, Inc