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

Moment.format does not work properly with line-break [\n] #1151

Closed
goodlime opened this Issue Oct 1, 2013 · 8 comments

Comments

Projects
None yet
5 participants
@goodlime
Copy link

commented Oct 1, 2013

moment().format("ddd\nDD\nMMM")
results in string:
Mon30Sep

moment().format("ddd[\n]DD[\n]MMM")
results in string:
Mon[
]30[
]Sep

@icambron

This comment has been minimized.

Copy link
Member

commented Oct 2, 2013

Thanks for the bug report!

I've proposed a fix in #1158.

@guptasaumya

This comment has been minimized.

Copy link

commented Mar 8, 2018

What is the fix exactly? Did you get a solution?

@icambron

This comment has been minimized.

Copy link
Member

commented Mar 9, 2018

@guptasaumya I don't remember, but that PR was merged with a test case, so it looks like it was fixed.

@guptasaumya

This comment has been minimized.

Copy link

commented Mar 9, 2018

@icambron

This comment has been minimized.

Copy link
Member

commented Mar 9, 2018

@guptasaumya This ticket was closed as fixed 5 years ago. Sounds like you've found a fresh problem. I suggest you file a new issue.

@seajean

This comment has been minimized.

Copy link

commented Mar 12, 2018

I have the same problem, open this issue again?

@jonaslagoni

This comment has been minimized.

Copy link

commented Mar 26, 2018

Using the html breakline works - moment().format("ddd[</br>]DD[</br>]MMM")

@moment moment locked and limited conversation to collaborators Mar 27, 2018

@icambron

This comment has been minimized.

Copy link
Member

commented Mar 27, 2018

please, y'all, file a new issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.