Skip to content

Commit 4c1d1c1

Browse files
authored
Fix initial injection of the user properties (#221)
Former-commit-id: 97fadbb
1 parent b6b5c89 commit 4c1d1c1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

streamer/.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
env:
1414
scheme: ${{ 'r2-streamer-swift' }}
1515
platform: ${{ 'iOS Simulator' }}
16+
device: ${{ 'iPhone 13' }}
1617

1718
steps:
1819
- name: Checkout
@@ -30,9 +31,7 @@ jobs:
3031
rm -rf r2-streamer-swift.xcodeproj
3132
- name: Build
3233
run: |
33-
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
3434
xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device"
3535
- name: Test
3636
run: |
37-
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
3837
xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform,name=$device"

streamer/r2-streamer-swift/Parser/EPUB/Resource Transformers/EPUBHTMLInjector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class EPUBHTMLInjector {
3838
if isReflowable {
3939
// User properties injection
4040
if let htmlStart = content.endIndex(of: "<html") {
41-
let style = #" style="\(userProperties.css)""#
41+
let style = #" style="\#(self.userProperties.css)""#
4242
content = content.insert(string: style, at: htmlStart)
4343
}
4444

0 commit comments

Comments
 (0)