Fix elf page description display issue
This commit is contained in:
@@ -116,6 +116,7 @@ const ElfShowPage = ({ elf }: ElfShowPageProps) => {
|
|||||||
p: 2,
|
p: 2,
|
||||||
borderBottom: 'default',
|
borderBottom: 'default',
|
||||||
'&:last-child': { borderBottom: 'none' },
|
'&:last-child': { borderBottom: 'none' },
|
||||||
|
whiteSpace: 'pre-wrap',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{translate(
|
{translate(
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ function parseElfData(rawData: string) {
|
|||||||
.map((data) => data.replace(/#+\s/, '').trim())
|
.map((data) => data.replace(/#+\s/, '').trim())
|
||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
description,
|
description: description.replace(/\\\*/g, '*'),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user