Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/hyperlink #30

Merged
merged 5 commits into from
Nov 19, 2020
Merged

Bugfix/hyperlink #30

merged 5 commits into from
Nov 19, 2020

Conversation

privateOmega
Copy link
Owner

fixes #28
fixed hyperlink containing document generation issue.
handled nested level hyperlinks.

Copy link
Collaborator

@amrita-syn amrita-syn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on local as well. Works fine for the given example. Tried a few other combinations - table example failed.

<p>
  <a href="https://en.wikipedia.org/wiki/Coffee">
    <u>Coffee</u>
  </a>
</p>
<h1>
  <a href="https://en.wikipedia.org/wiki/Coffee">
    <u>Coffee</u>
  </a>
</h1>
<p>
  <a href="https://en.wikipedia.org/wiki/Coffee">
    <strong
      ><u><i>Coffee</i></u></strong
    >
  </a>
</p>
<table>
  <tr>
    <td>
      <a href="https://en.wikipedia.org/wiki/Coffee">
        <i>Coffee</i>
      </a>
    </td>
  </tr>
</table>

@privateOmega
Copy link
Owner Author

Tested on local as well. Works fine for the given example. Tried a few other combinations - table example failed.

<p>
  <a href="https://en.wikipedia.org/wiki/Coffee">
    <u>Coffee</u>
  </a>
</p>
<h1>
  <a href="https://en.wikipedia.org/wiki/Coffee">
    <u>Coffee</u>
  </a>
</h1>
<p>
  <a href="https://en.wikipedia.org/wiki/Coffee">
    <strong
      ><u><i>Coffee</i></u></strong
    >
  </a>
</p>
<table>
  <tr>
    <td>
      <a href="https://en.wikipedia.org/wiki/Coffee">
        <i>Coffee</i>
      </a>
    </td>
  </tr>
</table>

Had to pass the docxDocumentInstance argument to the buildParagraph() inside buildTableCell(), missed it earlier. Good catch.

@privateOmega privateOmega merged commit 2fdab11 into develop Nov 19, 2020
@privateOmega privateOmega deleted the bugfix/hyperlink branch November 19, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants