-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 #906. New unformatted_tag_content option. #1081
Conversation
@bitwiseman His solution is not working with js/lib/cli.js calls. I got same 4 days ago and did'n push because of this. Tests run ok, beautify-html run ok but cli fails (didn't set \n before closing body tag). That's why my solution is more complex. |
@mykytak - please provide an example? How can I see the failure? |
@bitwiseman You can use code from #1080, I got same code and same result.
run
|
When I run the test you outlined on ( b3798f1) it comes out:
What platform are you running on? |
(Note: I did find an unrelated bug while testing this, so thank you there. 😄 ) |
@bitwiseman Ubuntu14, 64bit |
@bitwiseman I'll send you virtualbox files. |
@mykytak - Could you |
|
Hmm, I was wrong, no help there. |
@bitwiseman check your inbox, I create ssh tunnel into my machine and sent you instructions. |
@mykytak - looked. I can see the repro, but I'm not spotting the source of the issue. I'm not sure why it would only show up in the CLI. Tried node 0.10.48 on OSX - no repro. It is late here, I'll take a look at this in the next couple days. |
what happens if you use -U instead of -T ? |
sorry, I meant, run without -T, not with -U adding -T shouldn't change the handling of newline after tag |
I'm sorry you feel that your PR was not given the appropriate consideration. I hope you will continue to contribute beyond this one PR. |
Fix for #906
New option for unformatted content:
unformatted_tag_content
. Usage same as forunformatted
, console short version:-utc
.Parser now has new tag_type:
UNFORMATTED
. It parses content inside tag but process tag itself as separatetag_type
instead of getting them as raw text.