Przeglądaj źródła

Declare `=encoding` ASAP

In some cases the file is not slurped so declaring encoding at the tail
is useless.
Alois Mahdal 6 lat temu
rodzic
commit
f9ccf6f29c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      src/include-bash/sfdoc.sh

+ 2
- 1
src/include-bash/sfdoc.sh Wyświetl plik

@@ -135,6 +135,8 @@ __sfdoc__export_as_pod() {
135 135
     echo "true <<'=cut'"
136 136
     echo "=pod"
137 137
     echo
138
+    echo "=encoding $Encoding"
139
+    echo
138 140
     echo "=head1 NAME"
139 141
     echo
140 142
     echo "$MName - $(__sfdoc__get_doc | head -1)"
@@ -187,7 +189,6 @@ __sfdoc__export_as_pod() {
187 189
         echo "=back"
188 190
         echo
189 191
     }
190
-    echo "=encoding $Encoding"
191 192
     echo "=cut"
192 193
 }
193 194