We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6599e19 commit 7bd0f14Copy full SHA for 7bd0f14
src/components/github-htmlview.component.js
@@ -300,7 +300,8 @@ export class GithubHtmlView extends Component {
300
<Text
301
style={linkStyle}
302
onPress={() =>
303
- onLinkPress({ ...node, attribs: { href: node.attribs.src } })}
+ onLinkPress({ ...node, attribs: { href: node.attribs.src } })
304
+ }
305
>
306
[{node.attribs.alt}]
307
{'\n'}
@@ -388,13 +389,13 @@ export class GithubHtmlView extends Component {
388
389
};
390
391
if (_node.type === 'text') {
- if (_node.data === '\n') {
392
+ if (_node.data.trim() === '' && _node.data.includes('\n')) {
393
return (
394
395
key={_index}
396
style={{ height: 8, fontSize: normalize(8), width: 2 }}
397
- {_node.data}
398
+ {'\n'}
399
</Text>
400
);
401
}
0 commit comments