Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .noWS to HTML(), remove extra ws for htmlTemplate #154

Merged
merged 1 commit into from
Jan 17, 2020

Conversation

jcheng5
Copy link
Member

@jcheng5 jcheng5 commented Jan 15, 2020

Fixes #57, #153

  • Adds a .noWS argument to HTML() (previously, whitespace could only be suppressed around/within tags)
  • htmlTemplate is implemented by alternating HTML() chunks with R code results; by adding .noWS = "outside" to the HTML(), we can finally remove extraneous whitespace around {{...}} replacements

Testing notes

The behavior changes are covered in unit tests. For manual test purposes, you can look at the repros in issues #57 and #153 (for the latter, replace the call to generateId() with any string).

@jcheng5 jcheng5 force-pushed the joe/bugfix/htmltemplate-nows branch from 70463c9 to 356c298 Compare January 15, 2020 22:47
@jcheng5 jcheng5 requested a review from wch January 15, 2020 22:49
@jcheng5 jcheng5 merged commit e07546c into master Jan 17, 2020
@jcheng5 jcheng5 deleted the joe/bugfix/htmltemplate-nows branch January 17, 2020 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

htmlTemplate not respecting indentation
2 participants