On Mon, 27 Feb 2017 22:45:40 -0800 (PST)
Largo84 <[email protected]> wrote:

> Suppose I create an abbreviation for a LaTex construct such as:
> 
> newcom;;=\newcommand{\SomethingNew}{<|INSERT-TEXT|>}
> 
> When executed, the `\n` is interpreted as a Python line feed and I
> end up with:

leo-editor/leo/config/leoSettings.leo#@settings-->Abbreviations-->@data 
global-abbreviations

illustrates this:

# type html;; to insert template and ,, to select next <|placeholder|>
html;;=<html>
\:<head>
\:<title><|title|></title>
\:<style>
\:</style>
\:</head>
\:<body>
\:<|content|>
\:</body>
\:</html>

i.e. lines starting with \: are appended to the abbreviation (with a \n
between each).

Cheers -Terry

> ewcommand{...
> 
> How can I escape the `\n` so that it doesn't create a line feed, but
> the string literal value of `\n`? I looked here 
> <https://docs.python.org/2.0/ref/strings.html>, but didn't see
> anything helpful.
> 
> Rob.......
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to