diegomura / diegomura/react-pdf

Numbers don't go to the next line, instead they overlap with others if numbers exceed the width of the parent tag width.

Open
#2,852 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

**Describe the bug**
A clear and concise description of what the bug is.
If there are Numbers in the Text tag, they overlap with the adjacent text when they exceed the Width of the View. But if there is non-numeric data, the text gets hyphenated.

**To Reproduce**
Steps to reproduce the behaviour:

1. Create a document with a page in it
2. Create a row inside in which there is numeric and non-numeric data
3. For eg:
```

{/* Table */}




0316202487894892748


OT103ST829479374892


Men 100% COTTON
DENIM PANT Men 100% COTTON
DENIM PANT



26-44/34


4.45345


4312iy8428y492y482


85293847982478924


274892347242947828


73895739758347583


892374823749728


2789423748924728

```

**Expected behaviour**
if the number exceeds the width of the View, it should go to the next line **without hyphenation**.

**Screenshots**
![image](https://github.com/user-attachments/assets/22081b28-d600-49f9-885c-e4dd2a4fc20c)

If there is text, then hyphenation works, but in the case of numbers, the text overlaps

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.