Include comments in PO.Item output

Fixes #5
This commit is contained in:
Gabe Gorelick
2014-03-01 17:21:18 -05:00
parent c5515d6128
commit ada76116b0
2 changed files with 13 additions and 0 deletions

View File

@@ -192,6 +192,12 @@ PO.Item.prototype.toString = function () {
return lines;
};
if (this.comments.length > 0) {
this.comments.forEach(function (c) {
lines.push('# ' + c);
});
}
if (this.references.length > 0) {
this.references.forEach(function (ref) {
lines.push('#: ' + ref);