textmarkup/
mg_tm_firstline.pro
Routines
Routines from mg_tm_firstline.pro
mg_tm_firstline_gettext, firstline, tree [, /done]
Helper routine to strip out text from MGtmText tags and add them to the firstline tree.
result = mg_tm_firstline(tree)
Get the first line of text given a markup tree and return it as another markup tree (copying nodes in the original tree where necessary).
Routine details
top mg_tm_firstline_gettext
mg_tm_firstline_gettext, firstline, tree [, /done]
Parameters
- firstline in required type=MGtmTag
parent to add text nodes to
- tree in required type=MGtmNode
the current tree to examine
Keywords
- done out optional type=boolean
set to a named variable to determine if the first sentence is complete
File attributes
Modification date: | Wed May 14 15:07:14 2014 |
Lines: | 38 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.