History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-555
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Cameron Kenneth Knight
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Boo

Intelligent Multiline Strings

Created: 27/Oct/05 11:09 AM   Updated: 27/Oct/05 11:09 AM
Component/s: Parser
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
Hopefully JIRA won't mess up with the whitespace.

This is the current way to deal with multiline strings:

class Alpha:
def Bravo():
s = """ Dear Foobar,
Blah blah blah, blah blah blah. Blah
blah blah blah. Blah blah blah blah blah
blah.
Sincerely,
Barfoo"""

This would be a great way to do them, notice the indentation is kept in tact, but would give the same end result.

class Alpha:
def Bravo():
s = """ Dear Foobar,
Blah blah blah, blah blah blah. Blah
blah blah blah. Blah blah blah blah blah
blah.
Sincerely,
Barfoo"""

This is mostly handy in keeping a block as one distinct unit, by having the current indentation, the block with the string drools into the previous ones.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.