On Feb 1, 9:49 am, "Edward K. Ream" <[email protected]> wrote:
> But an experiment seems to show that \s also matches the end of a
> string. For example, get_directives_dict *does* recognize a directive
> at the very end of a body text (or, presumably, a headline), even with
> the \s appended to the regex.
>
> In fact, this is what I want, but is it valid to rely on this apparent
> fact? Leo's operation depends on it.
Oh my. It looks like get_directives_dict doesn't handle @others
correctly. Happily, scanAllDirectives never uses this part of the
results from get_directives_dict, so the issue is moot.
I've just disabled this line in g.compute_directives_re:
aList.append(r'^...@others\s')
This never caused a problem, becauseonly the atFile.write logic looks
for '@others', and it does so using another mechanism, namely a call
to the line-oriented at.directiveKind4(s,i) in at.putBody.
And so it goes...
Edward
--
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.