Lines Matching refs:text

668   def inner(text):
670 text += '\n\n<b>Units</b>: %s\n' % (dedent(entry.units))
672 text += '\n\n<b>Possible values:</b>\n<ul>\n'
675 text += ' <li>{@link #%s %s}</li>\n' % ( jenum_value(entry, value ), value.name )
676 text += '</ul>\n'
679 text += '\n\n<b>Available values for this device:</b><br>\n'
681 text += '\n\n<b>Range of valid values:</b><br>\n'
682 text += '%s\n' % (dedent(entry.range))
684 text += '\n\n<b>Optional</b> - This value may be {@code null} on some devices.\n'
686 text += \
691 text += \
696 text += "\nThis key is available on all devices."
698 return text
704 Returns a function to format a markdown syntax text block as a
712 A function that transforms a String text block as follows:
736 def javadoc_formatter(text):
740 javatext = md(text, JAVADOC_IMAGE_SRC_METADATA)
769 text = '\n'
771 text = text + '\n@see %s#%s' % (kind_mapping[node.kind],
774 return text if text != '\n' else ''
791 def dedent(text):
794 This will avoid getting <code> blocks when rendering text via markdown.
798 text: A string of text to dedent.
808 text = textwrap.dedent(text)
809 text_lines = text.split('\n')
812 text = text_lines[0] + "\n" + text_not_first
814 return text
816 def md(text, img_src_prefix=""):
818 Run text through markdown to produce HTML.
825 text: A markdown-syntax using block of text to format.
857 text = dedent(text)
862 text = markdown.markdown(text, md_extensions)
865 text = re.sub(r'src="([^"]*)"', 'src="' + img_src_prefix + r'\1"', text)
866 return text
868 def filter_tags(text, metadata, filter_function, summary_function = None):
871 the provided text, and pass them through filter_function and summary_function.
876 text: A string representing a block of text destined for output
879 when found in text; the string returned replaces the tag name in text.
881 unique tag nodes found in text, and which must return a string that is
882 then appended to the end of the text. The list is sorted alphabetically
956 text = re.sub(tag_match, filter_sub, text)
959 return text + summary_function(sorted(tag_set, key=lambda x: x.name))
961 return text
963 def filter_links(text, filter_function, summary_function = None):
966 provided text, and pass them through filter_function and
972 text: A string representing a block of text destined for output
975 zzz pair when found in text; the string returned replaces the tag name in text.
977 unique targets found in text, and which must return a string that is
978 then appended to the end of the text. The list is sorted alphabetically
1000 text = re.sub(tag_match, filter_sub, text)
1003 return text + summary_function(sorted(target_set))
1005 return text
1056 def wbr(text):
1068 text: A string of text containing HTML content.
1076 def wbr_filter(text):
1077 new_txt = text
1081 for words in text.split(" "):
1095 soup = bs4.BeautifulSoup(text, features='html.parser')
1098 for navigable_string in soup.findAll(text=True):
1101 # Insert each '$text<wbr>$foo' before the old '$text$foo'
1111 # Remove the old unmodified text