Skip to content

Commit c0dbdd5

Browse files
committed
Remove patch Escaping XML-specific characters written in Ruby code.
1 parent 2c7e99b commit c0dbdd5

File tree

4 files changed

+1
-17
lines changed

4 files changed

+1
-17
lines changed

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ RUN apt -q update && apt -q -y upgrade
1313

1414
RUN echo "deb [trusted=yes] https://repository.dodeeric.be/apt/ /" > /etc/apt/sources.list.d/dodeeric.list
1515
RUN apt -q -y install ca-certificates
16-
RUN apt -q update && apt -q -y install pdf2htmlex poppler-utils bc zip file ruby
17-
RUN gem install htmlentities
16+
RUN apt -q update && apt -q -y install pdf2htmlex poppler-utils bc zip file
1817

1918
# Bash script
2019

2120
COPY ./pdf2epubEX /bin
22-
COPY ./xmlEscape.rb /bin
2321

2422
RUN mkdir /temp
2523
WORKDIR /temp

pdf2epubEX

-7
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ else
6565
title="$pdftitle"
6666
fi
6767
fi
68-
title=`echo ${title} | ruby /bin/xmlEscape.rb`
6968

7069
if [ -z "$author" ] && [ -z "$pdfauthor" ] ; then
7170
author="None"
@@ -74,32 +73,26 @@ else
7473
author="$pdfauthor"
7574
fi
7675
fi
77-
author=`echo ${author} | ruby /bin/xmlEscape.rb`
7876

7977
if [ -z "$publisher" ] ; then
8078
publisher="None"
8179
fi
82-
publisher=`echo ${publisher} | ruby /bin/xmlEscape.rb`
8380

8481
if [ -z "$year" ] ; then
8582
year="1900"
8683
fi
87-
year=`echo ${year} | ruby /bin/xmlEscape.rb`
8884

8985
if [ -z "$language" ] ; then
9086
language="en"
9187
fi
92-
language=`echo ${language} | ruby /bin/xmlEscape.rb`
9388

9489
if [ -z "$isbn" ] ; then
9590
isbn="None"
9691
fi
97-
isbn=`echo ${isbn} | ruby /bin/xmlEscape.rb`
9892

9993
if [ -z "$tags" ] ; then
10094
tags="None"
10195
fi
102-
tags=`echo ${tags} | ruby /bin/xmlEscape.rb`
10396

10497
}
10598

sample.pdf

-24.8 KB
Binary file not shown.

xmlEscape.rb

-7
This file was deleted.

0 commit comments

Comments
 (0)