Skip to content

Commit

Permalink
Merge pull request #200 from INCATools/issue-199
Browse files Browse the repository at this point in the history
Remove double quoting problem.
  • Loading branch information
balhoff authored Feb 7, 2020
2 parents 7cd4031 + dd5479d commit 5bd2907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/org/monarchinitiative/dosdp/DOSDP.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ object PrintfText {
case None => Some(realVars.map(name => "'$" + name + "'"))
case Some(bound) =>
val stringValues = bound.mapValues(_.value)
realVars.map(v => stringValues.get(v).map(text => if (quote) s"'$text'" else text)).sequence
realVars.map(v => stringValues.get(v).map(text => if (quote && !(text.startsWith("'") && text.endsWith("'"))) s"'$text'" else text)).sequence
}
}
fillersOpt.getOrElse(Some(Nil)).map(fillers => text.format(fillers: _*))
Expand Down

0 comments on commit 5bd2907

Please sign in to comment.