File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: fc8b9671bbcfbe91857220538a1447fab4988dfc
2
+ refs/heads/master: 01c13a3878d31b15cf6e5373d01604a706a71211
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ type writer =
356
356
// write_str will continue to do utf-8 output only. an alternative
357
357
// function will be provided for general encoded string output
358
358
fn write_str ( str s) ;
359
+ fn write_line ( str s) ;
359
360
fn write_char ( char ch) ;
360
361
fn write_int ( int n) ;
361
362
fn write_uint ( uint n) ;
@@ -392,6 +393,10 @@ state obj new_writer(buf_writer out) {
392
393
fn write_str ( str s) {
393
394
out. write ( str:: bytes ( s) ) ;
394
395
}
396
+ fn write_line ( str s) {
397
+ out. write ( str:: bytes ( s) ) ;
398
+ out. write ( str:: bytes ( "\n " ) ) ;
399
+ }
395
400
fn write_char ( char ch) {
396
401
// FIXME needlessly consy
397
402
out. write ( str:: bytes ( str:: from_char ( ch) ) ) ;
You can’t perform that action at this time.
0 commit comments