You are here

protected function TMGMTFileformatXLIFF::writeBR in Translation Management Tool 7

Writes br tag.

Parameters

XMLWriter $writer: Writer that writes the output.

DOMElement $node: Current node.

$id: Current node id.

1 call to TMGMTFileformatXLIFF::writeBR()
TMGMTFileformatXLIFF::processForExport in translators/file/tmgmt_file.format.xliff.inc
Helper function to process the source text.

File

translators/file/tmgmt_file.format.xliff.inc, line 520

Class

TMGMTFileformatXLIFF
Export to XLIFF format.

Code

protected function writeBR(XMLWriter $writer, DOMElement $node, $id) {
  $writer
    ->startElement('x');
  $writer
    ->writeAttribute('id', $id);
  $writer
    ->writeAttribute('ctype', 'lb');
  $writer
    ->endElement();
}