Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
It works, thanks!

On Tuesday, February 28, 2017 at 12:27:48 PM UTC-5, Terry Brown wrote:
>
> Ok, \\n should work in 9e9539d, there was special handling of \n in the 
> code already that made \newcommand etc. impossible.  I think it unavoidably 
> breaks theoretically possible abbreviations in people's local settings, but 
> (a) they probably don't exist, and (b) better that than have the code 
> unable to represent text needed for a demonstrated use case (\newcommand 
> etc. in LaTeX).
>
> Cheers -Terry
>
> --
> *From:* Largo84 <lar...@gmail.com >
> *To:* leo-editor <leo-e...@googlegroups.com > 
> *Cc:* terry_...@yahoo.com 
> *Sent:* Tuesday, February 28, 2017 10:10 AM
> *Subject:* Re: How to escape \n in abbreviations?
>
> Yes, and I also tried '\n' and "\n" to no avail.
>
> Rob.
>
> On Tuesday, February 28, 2017 at 10:52:58 AM UTC-5, Terry Brown wrote:
>
> Sorry, didn't read carefully enough.  Have you tried \\n ?
>
> Cheers -Terry
>
> --
> *From:* Largo84 <lar...@gmail.com>
> *To:* leo-editor <leo-e...@googlegroups.com> 
> *Sent:* Tuesday, February 28, 2017 9:47 AM
> *Subject:* Re: How to escape \n in abbreviations?
>
> That doesn't really answer the question. I use the `\:` syntax often to 
> create new lines in abbreviations as you demonstrate. What I need is the 
> text output to be `\n`. I need to somehow escape the `\n` such that when 
> executed it doesn't generate a new line and strip out the `\n' string 
> literal.
>
> Rob
>
> On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:
>
>
>
> leo-editor/leo/config/ leoSettings.leo#@settings--> Abbreviations-->@data 
> global-abbreviations 
>
> illustrates this: 
>
> # type html;; to insert template and ,, to select next <|placeholder|> 
> html;;= 
> \: 
> \:<|title|> 
> \: 
> \: 
> \: 
> \: 
> \:<|content|> 
> \: 
> \: 
>
> -- 
> 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 leo-editor+...@ googlegroups.com.
> To post to this group, send email to leo-e...@googlegroups.com.
>
> Visit this group at https://groups.google.com/ group/leo-editor 
> <https://groups.google.com/group/leo-editor>.
> For more options, visit https://groups.google.com/d/ optout 
> <https://groups.google.com/d/optout>.
>
>
>
>
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
Ok, \\n should work in 9e9539d, there was special handling of \n in the code 
already that made \newcommand etc. impossible.  I think it unavoidably breaks 
theoretically possible abbreviations in people's local settings, but (a) they 
probably don't exist, and (b) better that than have the code unable to 
represent text needed for a demonstrated use case (\newcommand etc. in LaTeX).
Cheers -Terry

  From: Largo84 <larg...@gmail.com>
 To: leo-editor <leo-editor@googlegroups.com> 
Cc: terry_n_br...@yahoo.com
 Sent: Tuesday, February 28, 2017 10:10 AM
 Subject: Re: How to escape \n in abbreviations?
   
Yes, and I also tried '\n' and "\n" to no avail.
Rob.

On Tuesday, February 28, 2017 at 10:52:58 AM UTC-5, Terry Brown wrote:
Sorry, didn't read carefully enough.  Have you tried \\n ?
Cheers -Terry
  From: Largo84 <lar...@gmail.com>
 To: leo-editor <leo-e...@googlegroups.com> 
 Sent: Tuesday, February 28, 2017 9:47 AM
 Subject: Re: How to escape \n in abbreviations?
  
That doesn't really answer the question. I use the `\:` syntax often to create 
new lines in abbreviations as you demonstrate. What I need is the text output 
to be `\n`. I need to somehow escape the `\n` such that when executed it 
doesn't generate a new line and strip out the `\n' string literal.
Rob

On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:


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

illustrates this:

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


-- 
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 leo-editor+...@ googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/ group/leo-editor.
For more options, visit https://groups.google.com/d/ optout.


   


   

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
Done

On Tuesday, February 28, 2017 at 11:35:24 AM UTC-5, Edward K. Ream wrote:
>
>
> ​Please file an enhancement request.
>
> Edward
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Edward K. Ream
On Tue, Feb 28, 2017 at 10:10 AM, Largo84  wrote:

> Yes, and I also tried '\n' and "\n" to no avail.
>

​Please file an enhancement request.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
Yes, and I also tried '\n' and "\n" to no avail.

Rob.

On Tuesday, February 28, 2017 at 10:52:58 AM UTC-5, Terry Brown wrote:
>
> Sorry, didn't read carefully enough.  Have you tried \\n ?
>
> Cheers -Terry
>
> --
> *From:* Largo84 <lar...@gmail.com >
> *To:* leo-editor <leo-e...@googlegroups.com > 
> *Sent:* Tuesday, February 28, 2017 9:47 AM
> *Subject:* Re: How to escape \n in abbreviations?
>
> That doesn't really answer the question. I use the `\:` syntax often to 
> create new lines in abbreviations as you demonstrate. What I need is the 
> text output to be `\n`. I need to somehow escape the `\n` such that when 
> executed it doesn't generate a new line and strip out the `\n' string 
> literal.
>
> Rob
>
> On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:
>
>
>
> leo-editor/leo/config/ leoSettings.leo#@settings--> Abbreviations-->@data 
> global-abbreviations 
>
> illustrates this: 
>
> # type html;; to insert template and ,, to select next <|placeholder|> 
> html;;= 
> \: 
> \:<|title|> 
> \: 
> \: 
> \: 
> \: 
> \:<|content|> 
> \: 
> \: 
>
> -- 
> 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 leo-editor+...@googlegroups.com .
> To post to this group, send email to leo-e...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
Sorry, didn't read carefully enough.  Have you tried \\n ?
Cheers -Terry
  From: Largo84 <larg...@gmail.com>
 To: leo-editor <leo-editor@googlegroups.com> 
 Sent: Tuesday, February 28, 2017 9:47 AM
 Subject: Re: How to escape \n in abbreviations?
   
That doesn't really answer the question. I use the `\:` syntax often to create 
new lines in abbreviations as you demonstrate. What I need is the text output 
to be `\n`. I need to somehow escape the `\n` such that when executed it 
doesn't generate a new line and strip out the `\n' string literal.
Rob

On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:


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

illustrates this:

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


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


   

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
That doesn't really answer the question. I use the `\:` syntax often to 
create new lines in abbreviations as you demonstrate. What I need is the 
text output to be `\n`. I need to somehow escape the `\n` such that when 
executed it doesn't generate a new line and strip out the `\n' string 
literal.

Rob

On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:
>
>
>
> leo-editor/leo/config/leoSettings.leo#@settings-->Abbreviations-->@data 
> global-abbreviations 
>
> illustrates this: 
>
> # type html;; to insert template and ,, to select next <|placeholder|> 
> html;;= 
> \: 
> \:<|title|> 
> \: 
> \: 
> \: 
> \: 
> \:<|content|> 
> \: 
> \: 
>
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
On Mon, 27 Feb 2017 22:45:40 -0800 (PST)
Largo84  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;;=
\:
\:<|title|>
\:
\:
\:
\:
\:<|content|>
\:
\:

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 
> , 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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


How to escape \n in abbreviations?

2017-02-27 Thread Largo84
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:

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 
, 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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.