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

In a markdown file, the trailling two whitespaces is meaningful #23

Closed
wasphin opened this issue Jul 13, 2016 · 7 comments
Closed

In a markdown file, the trailling two whitespaces is meaningful #23

wasphin opened this issue Jul 13, 2016 · 7 comments

Comments

@wasphin
Copy link

wasphin commented Jul 13, 2016

In a markdown file, the trailling two whitespaces are meaningful. So is there an option to skip trimming these two whitespaces.

See syl20bnr/spacemacs#6510

@lewang
Copy link
Owner

lewang commented Jul 13, 2016

What's the significance of two trailing white spaces in markdown?

On Wed, Jul 13, 2016 at 3:37 AM, was4444 notifications@github.com wrote:

In a markdown file, the trailling two whitespaces are meaningful. So is
there an option to skip trimming these two whitespaces.

See syl20bnr/spacemacs#6510
syl20bnr/spacemacs#6510


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#23, or mute the thread
https://github.com/notifications/unsubscribe/AAjzbK60hSg9NA5-luHWiEBbPN5bTxzGks5qVJWpgaJpZM4JLJDL
.

Le

@wasphin
Copy link
Author

wasphin commented Jul 14, 2016

@lewang. newline.
http://daringfireball.net/projects/markdown/syntax#p

When you do want to insert a
break tag using Markdown, you end a line with two or more spaces, then type return.

@lewang
Copy link
Owner

lewang commented Jul 14, 2016

Is it only two spaces? Does 3 spaces just have no valid meaning?

It seems like ws-butler should just not be enabled for this mode.

On Wed, Jul 13, 2016 at 9:24 PM, was4444 notifications@github.com wrote:

@lewang https://github.com/lewang. newline.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAjzbPGpVG02sm288eAjEqgssuff_39Uks5qVY-zgaJpZM4JLJDL
.

Le

@wasphin
Copy link
Author

wasphin commented Jul 14, 2016

@lewang, the docs said that 2 or 2+(2, 3, 4, ...) spaces are all meaningful.
Yes, though less willing to disable it.

@lewang
Copy link
Owner

lewang commented Jul 14, 2016

Can you try #24 ? If it fixes the issue I will cut a release with this change soon.

@wasphin
Copy link
Author

wasphin commented Jul 15, 2016

Seems not work, some instructions is needed.
Not that familiar with Emacs. I use Spacemacs to manage packages, the ws-butler version is 20150126.759.
Here is what I do:

  1. replace the ws-butler.el file;
  2. run emacs --batch --eval '(byte-compile-file "ws-butler.el")'

@wasphin
Copy link
Author

wasphin commented Jul 20, 2016

@lewang, it works. It seems Spacemacs only use ws-butler in changed mode.

It works if I set dotspacemacs-whitespace-cleanup to changed.

https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Bdistribution/spacemacs-base/config.el#L165

https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Bdistribution/spacemacs-base/packages.el#L1630

@lewang lewang closed this as completed Sep 19, 2016
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

No branches or pull requests

2 participants