Support-ADV
Writer updates for fileADVControl
@@ -48,9 +48,15 @@ func (w *Writer) Write(file *File) error {
return err
}
+ if !file.isADV() {
if _, err := w.w.WriteString(file.Control.String() + "\n"); err != nil {
return err
}
+ } else {
+ if _, err := w.w.WriteString(file.ADVControl.String() + "\n"); err != nil {
+ return err
+ }
+ }
w.lineNum++
// pad the final block
