diff options
Diffstat (limited to '')
-rw-r--r-- | src/tafwriter.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/tafwriter.cpp b/src/tafwriter.cpp index b5690fc..c2fbc50 100644 --- a/src/tafwriter.cpp +++ b/src/tafwriter.cpp | |||
@@ -65,9 +65,18 @@ void Bu::TafWriter::writeProperty( const Bu::TafProperty *pProp ) | |||
65 | void Bu::TafWriter::writeComment( const Bu::TafComment *pComment ) | 65 | void Bu::TafWriter::writeComment( const Bu::TafComment *pComment ) |
66 | { | 66 | { |
67 | ident(); | 67 | ident(); |
68 | sOut.write("/*", 2 ); | 68 | if( pComment->isEOLStyle() ) |
69 | sOut.write( pComment->getText().getStr(), pComment->getText().getSize() ); | 69 | { |
70 | sOut.write("*/ ", 3 ); | 70 | sOut.write("//", 2 ); |
71 | sOut.write( pComment->getText().getStr(), pComment->getText().getSize() ); | ||
72 | sOut.write("\n", 1 ); | ||
73 | } | ||
74 | else | ||
75 | { | ||
76 | sOut.write("/*", 2 ); | ||
77 | sOut.write( pComment->getText().getStr(), pComment->getText().getSize() ); | ||
78 | sOut.write("*/ ", 3 ); | ||
79 | } | ||
71 | } | 80 | } |
72 | 81 | ||
73 | void Bu::TafWriter::writeString( const Bu::FString &str ) | 82 | void Bu::TafWriter::writeString( const Bu::FString &str ) |