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

fix(PrintFormat): Section Labels with spaces in them got truncated #6819

Conversation

netchampfaris
Copy link
Contributor

@netchampfaris netchampfaris commented Jan 23, 2019

When you save a Print Format from the Print Format Builder, it builds a JSON of the format with all the settings to reproduce that format. This also includes Section Labels. Section Labels are fetched from the HTML itself, specifically data-label attribute. This attribute breaks if you have spaces in your value and you don't have quotes around them.

Here is the issue:

print-format-builder-issue

@saurabh6790
Copy link
Member

screenshot?

@netchampfaris
Copy link
Contributor Author

@saurabh6790 Difficult to show a visual proof, I have explained my solution in the description.

@saurabh6790
Copy link
Member

Is it reproducible? If yes, then there should be before and after screenshots.

@rmehta rmehta merged commit cc033a6 into frappe:staging-fixes Jan 25, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants