henck / henck/rtf-html-php

tx doesn't work

Open
#106 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
107
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm having an issue where the size I set on tx for the \tab isn't working.

Example:

{\rtf1\ansi\UTF-8\deff0{\fonttbl{\f0\fmodern\fcharset0 Courier New;}}\par\f0\fs22\b Parcial
de urina \par\pard\fs20\tx3000\tx3000\tx6000 \b Parâmetro \tab Resultado \tab
Referência \tab \b0 \par
\pard\fs20\tx3000\tx3000\tx6000 Volume: \tab \b 10 ml \b0 \tab \tab
\par\pard\fs20\tx3000\tx3000\tx6000 Aspecto: \tab \b Límpido \b0 \tab \tab
\par\pard\fs20\tx3000\tx3000\tx6000 Cor: \tab \b Amarelo claro \b0 \tab Amarelo Citrino \tab
\par\pard\fs20\tx3000\tx3000\tx6000 pH: \tab \b 5.0 \b0 \tab 5.0 a 6.5 \tab
}

Instead of increasing the space, it just stays as a normal \tab spacing.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the supplied RTF example to reproduce the problem, then locate the converter's handling of the RTF \tx and \tab controls. Compare the generated HTML with the expected wider tab spacing; done means tab stops set by \tx affect the output consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.