Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

MLB Boxscore - Whitespace Fix #1972

Merged
merged 1 commit into from
Jul 3, 2015
Merged

MLB Boxscore - Whitespace Fix #1972

merged 1 commit into from
Jul 3, 2015

Conversation

sdougbrown
Copy link
Contributor

Some whitespace crept into the compiled template, which makes the end result look a little skewed. 😄

to @bsstoner
cc @thm

@bsstoner
Copy link
Contributor

Do you think we can we solve this at the compile level instead of needing to add all the extra syntax to the templates? /cc @zachthompson @russellholt

@russellholt
Copy link
Contributor

I explored removing all leading white space from precompiled templates once - it worked (seemed to) and saved otherwise unminifiable space but it needs this large scale regression testing before I'd trust it. Is this what you mean?

@zachthompson
Copy link
Contributor

Are you referring to the indentation in the rendering?
white-space
I think this is fixed in handlebars 3.x:
no-white-space1
We could, as Russell suggests, remove leading white space pretty easily.

@bsstoner
Copy link
Contributor

We're doing it with the internal templates. Seems like maybe we could compile the same way in open source to avoid confusion? Where is the code that compiles the templates for open source?

Internally we're using a grunt task in core with a step that removes new lines and spaces. /www-release/frontend/Gruntfile.jsL54

@zachthompson
Copy link
Contributor

@sdougbrown
Copy link
Contributor Author

Merging now to fix the immediate issue with MLB scores - I agree that we should address the issue globally, though.

sdougbrown pushed a commit that referenced this pull request Jul 3, 2015
@sdougbrown sdougbrown merged commit 2ebccb4 into master Jul 3, 2015
@sdougbrown sdougbrown deleted the doug/mlb-alignment branch July 3, 2015 20:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants