Consider this simple example:
--- cut here ---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet ekr_test?>
<leo_file>
<leo_header file_format="2" tnodes="0" max_tnode_index="0"
clone_windows="0"/>
<globals body_outline_ratio="0.5">
<global_window_position top="50" left="50" height="500" width="700"/>
<global_log_window_position top="0" left="0" height="0" width="0"/>
</globals>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="shadow.20080819182430.2"><vh>@test zzz</vh></v>
</vnodes>
<tnodes>
<t tx="shadow.20080819182430.2">body = """
<< section >>
"""
</t>
</tnodes>
</leo_file>
--- cut here ---
It runs well.
If I remove the new line at the end of the multiline string, I get:
--- cut here ---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet ekr_test?>
<leo_file>
<leo_header file_format="2" tnodes="0" max_tnode_index="0"
clone_windows="0"/>
<globals body_outline_ratio="0.5">
<global_window_position top="50" left="50" height="500" width="700"/>
<global_log_window_position top="0" left="0" height="0" width="0"/>
</globals>
<preferences/>
<find_panel_settings/>
<vnodes>
<v t="shadow.20080819182430.2"><vh>@test zzz</vh></v>
</vnodes>
<tnodes>
<t tx="shadow.20080819182430.2">body = """
<< section >>"""
</t>
</tnodes>
</leo_file>
--- cut here ---
If I try to run this test by hitting Alt-4, I get the following
traceback:
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/shadow/leo/leo-current/leo/core/leoTest.py", line 182,
in runTest
exec script + '\n' in d
File "<string>", line 5
body = """
[EMAIL PROTECTED]:@test zzz
[EMAIL PROTECTED]
^
SyntaxError: EOF while scanning triple-quoted string
----------------------------------------------------------------------
Is this normal behaviour?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---