summaryrefslogtreecommitdiff
path: root/c51/2f2
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-06-17 12:26:43 +0200
committerJonas Smedegaard <dr@jones.dk>2024-06-17 12:26:43 +0200
commit975c68ddad989abe91af489eab544d1a9a5687ad (patch)
tree2320f40de323ff9e89907347de0d6f9f65f5e0a3 /c51/2f2
parent7643a8a14941c3c9d8facd3c084ac38ef0f55439 (diff)
update
Diffstat (limited to 'c51/2f2')
0 files changed, 0 insertions, 0 deletions
\n\@Comment\{jabref-meta:)/, $content, 2;
  • # call bibclean on comment-stripped data
  • my @command = qw(bibclean -max-width 0);
  • my $newdata;
  • run3( \@command, \$data, \$newdata,
  • { binmode_stdin => ':utf8', binmode_stdout => ':utf8' } )
  • or die "Failed to execute @command: $?";
  • # save/replace/spew cleaned data, reviving eventual trailing comments
  • if ($infile) {
  • open( FH, '>', $outfile || $infile ) or die $!;
  • print FH $newdata, $comments;
  • }
  • else {
  • print $newdata, $comments;
  • }
  • =encoding UTF-8
  • =head1 AUTHOR
  • Jonas Smedegaard C<< <dr@jones.dk> >>
  • =head1 COPYRIGHT AND LICENSE
  • Copyright © 2024 Jonas Smedegaard
  • This program is free software:
  • you can redistribute it and/or modify it
  • under the terms of the GNU Affero General Public License
  • as published by the Free Software Foundation,
  • either version 3, or (at your option) any later version.
  • This program is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY;
  • without even the implied warranty
  • of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • See the GNU Affero General Public License for more details.
  • You should have received a copy
  • of the GNU Affero General Public License along with this program.
  • If not, see <https://www.gnu.org/licenses/>.
  • =cut
  • 1;