@@ -221,9 +221,9 @@ dxfWriterAscii::dxfWriterAscii(std::ofstream *stream):dxfWriter(stream){
221
221
bool dxfWriterAscii::writeString (int code, std::string text) {
222
222
// *filestr << code << std::endl << text << std::endl ;
223
223
filestr->width (3 );
224
- *filestr << std::right << code << std::endl ;
224
+ *filestr << std::right << code << ' \n ' ;
225
225
filestr->width (0 );
226
- *filestr << std::left << text << std::endl ;
226
+ *filestr << std::left << text << ' \n ' ;
227
227
/* std::getline(*filestr, strData, '\0');
228
228
DBG(strData); DBG("\n");*/
229
229
return (filestr->good ());
@@ -232,9 +232,9 @@ bool dxfWriterAscii::writeString(int code, std::string text) {
232
232
bool dxfWriterAscii::writeInt16 (int code, int data) {
233
233
// *filestr << std::right << code << std::endl << data << std::endl;
234
234
filestr->width (3 );
235
- *filestr << std::right << code << std::endl ;
235
+ *filestr << std::right << code << ' \n ' ;
236
236
filestr->width (5 );
237
- *filestr << data << std::endl ;
237
+ *filestr << data << ' \n ' ;
238
238
return (filestr->good ());
239
239
}
240
240
@@ -245,9 +245,9 @@ bool dxfWriterAscii::writeInt32(int code, int data) {
245
245
bool dxfWriterAscii::writeInt64 (int code, unsigned long long int data) {
246
246
// *filestr << code << std::endl << data << std::endl;
247
247
filestr->width (3 );
248
- *filestr << std::right << code << std::endl ;
248
+ *filestr << std::right << code << ' \n ' ;
249
249
filestr->width (5 );
250
- *filestr << data << std::endl ;
250
+ *filestr << data << ' \n ' ;
251
251
return (filestr->good ());
252
252
}
253
253
@@ -256,15 +256,15 @@ bool dxfWriterAscii::writeDouble(int code, double data) {
256
256
// filestr->precision(12);
257
257
// *filestr << code << std::endl << data << std::endl;
258
258
filestr->width (3 );
259
- *filestr << std::right << code << std::endl ;
260
- *filestr << data << std::endl ;
259
+ *filestr << std::right << code << ' \n ' ;
260
+ *filestr << data << ' \n ' ;
261
261
// filestr->precision(prec);
262
262
return (filestr->good ());
263
263
}
264
264
265
265
// saved as int or add a bool member??
266
266
bool dxfWriterAscii::writeBool (int code, bool data) {
267
- *filestr << code << std::endl << data << std::endl ;
267
+ *filestr << code << ' \n ' << data << ' \n ' ;
268
268
return (filestr->good ());
269
269
}
270
270
0 commit comments