New answers tagged whitespace
1
In Markdown, two spaces at the end of the line cause a hard line break. markdown-mode highlights those for you, because otherwise they are indistinguishable from soft line breaks. It seems you have trailing white space in your diagram.
However, this is a bug since it shouldn't apply that face to trailing whitespace inside a code block.
0
Does this do what you want?
(defun collapse ()
(interactive)
(replace-regexp "> *[\n]+ *<" "><"))
Edited:
Just on selection:
(defun collapse ()
(interactive (if (use-region-p)
(progn
(setq start (region-beginning))
(setq end (region-end))
...
Top 50 recent answers are included
Related Tags
whitespace × 122indentation × 17
whitespace-mode × 13
tabs × 11
highlighting × 7
regular-expressions × 6
org-mode × 5
spacemacs × 4
hooks × 4
search × 4
major-mode × 4
region × 4
isearch × 4
newlines × 4
display × 3
formatting × 3
query-replace × 3
prelude × 3
linum-mode × 3
deletion × 3
key-bindings × 2
latex × 2
buffers × 2
evil × 2
faces × 2