In @root arguments (which become the last component of the file name), the tangle.setRootFromText() method iremoves surrounding character pairs <> and "", but not '', then removes any leading and trailing whitespace.
In @path arguments, the the g.stripPathCruft() method removes character pairs <>, "", and '', then removes any leading and trailing whitespace. I urge that the behavior be made consistent. Which way should it go? Since @root is much less used than @path, there's a strong argument for using the @path convention. Were I designing things from the beginning, I'd give a function to the quoting characters pairs that they suppress the leading and trailing whitespace removal - if you want whitespace removal from around the file name, don't quote it! (These quotes currently don't prevent or prescribe any other interpolation, e.g., by os.expanduser.) I'd very much like to hear your opinion, but if I don't hear anything in three or four days, I'll feel free commit to the trunk whatever strikes me as best at that time ;-) -- 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.
