You are here

public function rtf::nl2par in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/rtf/rtf_export.inc \rtf::nl2par()
  2. 6 class_rtf.php \rtf::nl2par()
  3. 7.2 modules/rtf/rtf_export.inc \rtf::nl2par()

Convert newlines into \par.

1 call to rtf::nl2par()
rtf::parseDocument in modules/rtf/rtf_export.inc
Parse the text input to RTF.

File

modules/rtf/rtf_export.inc, line 214

Class

rtf

Code

public function nl2par($text) {
  $text = str_replace("\n", "\\par ", $text);
  return $text;
}