diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-03-20 19:21:42 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-03-20 19:21:42 +0100 |
commit | f44c9d537c70eb96ef882c0e721fcbf8f939c302 (patch) | |
tree | 7962fa95fb17c70707693d0442dd25df0b7394db | |
parent | 87737d0e578e551107e95d388121adf4d7b9eeeb (diff) |
Use sprintf, and tidy surrounding code and comment slightly.
-rwxr-xr-x | pandoc-emphasis | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pandoc-emphasis b/pandoc-emphasis index 60c42d8..9adb6e5 100755 --- a/pandoc-emphasis +++ b/pandoc-emphasis @@ -94,10 +94,11 @@ sub emphasis { when ( $self->content->[0]->name eq 'Quoted' ) { $log->infof( 'emphasis: Emph+Quoted→foreign: %s', $_ ); - # FIXME: LaTeX-encode text + # FIXME: LaTeX-encode content return $window->interpret_view( RawInline( 'latex', - '\\foreign{' . $_ . '}' )); + sprintf( '\foreign{%s}', + $_ ))); } } return $window->describe_view(); |