diff options
author | jblum | 2008-08-24 05:26:04 +0000 |
---|---|---|
committer | jblum | 2008-08-24 05:26:04 +0000 |
commit | 66a225bf721cd61c736879bdf8ab44674319426d (patch) | |
tree | 8c05e5d9a4f1a0076e41e57197f83459057261ff /grc/src | |
parent | f3b43dd74f8757972cc30726f7b731a5441c6f31 (diff) | |
download | gnuradio-66a225bf721cd61c736879bdf8ab44674319426d.tar.gz gnuradio-66a225bf721cd61c736879bdf8ab44674319426d.tar.bz2 gnuradio-66a225bf721cd61c736879bdf8ab44674319426d.zip |
added cpfsk, make samps/sym integer, included xml tail in doc extraction
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9395 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src')
-rw-r--r-- | grc/src/grc_gnuradio/utils/extract_docs.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/grc/src/grc_gnuradio/utils/extract_docs.py b/grc/src/grc_gnuradio/utils/extract_docs.py index 13fe77a56..c9c872ef5 100644 --- a/grc/src/grc_gnuradio/utils/extract_docs.py +++ b/grc/src/grc_gnuradio/utils/extract_docs.py @@ -29,15 +29,18 @@ DOXYGEN_DETAILDESC_GR_XPATH = '/doxygen/compounddef/detaileddescription' DOXYGEN_BRIEFDESC_BLKS2_XPATH = '/doxygen/compounddef/sectiondef[@kind="public-func"]/memberdef/briefdescription' DOXYGEN_DETAILDESC_BLKS2_XPATH = '/doxygen/compounddef/sectiondef[@kind="public-func"]/memberdef/detaileddescription' -def extract_txt(xml): +def extract_txt(xml, parent_text=None): """! Recursivly pull the text out of an xml tree. @param xml the xml tree + @param parent_text the text of the parent element @return a string """ text = xml.text or '' - if not len(xml): return text - return ''.join([text] + map(extract_txt, xml)) + tail = parent_text and xml.tail or '' + return text + ''.join( + map(lambda x: extract_txt(x, text), xml) + ) + tail def is_match(key, file): """! |