Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@KetzerX
Copy link
Contributor

@KetzerX KetzerX commented May 2, 2019

In current implementation FB2 genre tag contains hardcoded value "unrecognised".
This PR makes use of genre field specified in metadata.

@jgm, could you review this please?

@mb21
Copy link
Collaborator

mb21 commented May 3, 2019

Thanks! Maybe you could rebase from master so the CI can run?

@KetzerX KetzerX force-pushed the fb2-writer-use-genre-metadata branch from 5f7c119 to 3805dd0 Compare May 3, 2019 10:01
@KetzerX
Copy link
Contributor Author

KetzerX commented May 3, 2019

Thanks! Maybe you could rebase from master so the CI can run?

Rebased.

description :: PandocMonad m => Meta -> FBM m Content
description meta' = do
let genre = el "genre" "unrecognised"
let genre = case lookupMeta "genre" meta' of
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplify this by using lookupMetaString from T.P.Writers.Shared.
Otherwise looks good!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@KetzerX KetzerX force-pushed the fb2-writer-use-genre-metadata branch from 3805dd0 to ccf4bdc Compare May 4, 2019 08:17
@jgm jgm merged commit 2fa8c0d into jgm:master May 4, 2019
@jgm
Copy link
Owner

jgm commented May 4, 2019

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants