Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 62c420c8bf |
@@ -2,7 +2,6 @@ package markdown
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"io"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@@ -78,6 +77,10 @@ func (m *Builder) SaveToFile(filePath string) error {
|
|||||||
}
|
}
|
||||||
defer rf.Close()
|
defer rf.Close()
|
||||||
|
|
||||||
_, err = io.Copy(rf, &m.buf)
|
_, err = rf.WriteString(m.Build())
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user