emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [BUG]? \\ and `fill-paragraph'


From: Yu
Subject: [O] [BUG]? \\ and `fill-paragraph'
Date: Mon, 30 Jan 2012 16:50:49 +0100

Hello!

When using "\\" to force linebreaks, these potentially get lost when
reformatting the paragraph with Alt+Q (fill paragraph).

Given an input

  :  - long sentence long sentence
  :    long sentence long sentence
  :    long sentence long sentence
  :    long sentence: \\
  :    Next line.

pressing Alt+Q (`fill-paragraph') I'd expect to get

  :  - long sentence long sentence long sentence long sentence long
  :    sentence long sentence long sentence: \\
  :    Next line.

but what I get is

  :  - long sentence long sentence long sentence long sentence long
  :    sentence long sentence long sentence: \\ Next line.

This is a problem especially as a "\\" anywhere but at the end of the
line is exported literally (i.e. `fill-paragraph' changes both the
appearance in emacs and in exported formats).

The Problem occurs in the opposite direction too: If a "\\" is  m e a
n t  to occur literally it can end up at the end of a line and thus be
interpreted as a line break.

The problem can be partially avoided by marking each "line" and /then/
pressing Alt+Q, but it is inconvinient and hinders fille-wide
reformatting (e.g. when the variable `fill-column' has changed).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]