idllib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

textmarkup/

mg_tm_firstline.pro


Routines

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 source mg_tm_firstline_gettext

mg_tm_firstline_gettext, firstline, tree [, /done]

Helper routine to strip out text from MGtmText tags and add them to the firstline tree.

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

top source mg_tm_firstline

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).

Return value

another markup tree

Parameters

tree in required type=object

markup tree

File attributes

Modification date: Thu Feb 17 14:28:36 2011
Lines: 78
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.