fix(compiler-cli): don't generate empty <target/> when extracting xliff
Fixes #15754
This commit is contained in:

committed by
Alex Rickabaugh

parent
9208f0beea
commit
65c9e13105
@ -53,7 +53,7 @@ export class Xliff extends Serializer {
|
||||
const transUnit = new xml.Tag(_UNIT_TAG, {id: message.id, datatype: 'html'});
|
||||
transUnit.children.push(
|
||||
new xml.CR(8), new xml.Tag(_SOURCE_TAG, {}, visitor.serialize(message.nodes)),
|
||||
new xml.CR(8), new xml.Tag(_TARGET_TAG), ...contextTags);
|
||||
...contextTags);
|
||||
|
||||
if (message.description) {
|
||||
transUnit.children.push(
|
||||
|
Reference in New Issue
Block a user