Skip to content
Permalink
Browse files

Dont convert pixel values to integers.

Will address line-height style bug discussed in #53
  • Loading branch information...
JoshuaDraxten authored and Daniel15 committed Dec 2, 2018
1 parent 3d53bb3 commit 60351e09e27fabc91c750eef46abf3831771b2e0
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/htmltojsx.js
@@ -724,9 +724,6 @@ StyleParser.prototype = {
if (isNumeric(value)) {
// If numeric, no quotes
return value;
} else if (isConvertiblePixelValue(value)) {
// "500px" -> 500
return trimEnd(value, 'px');
} else {
// Probably a string, wrap it in quotes
return '\'' + value.replace(/'/g, '"') + '\'';

0 comments on commit 60351e0

Please sign in to comment.
You can’t perform that action at this time.