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

Rendering issue on the console #16

Open
aptly-io opened this issue Mar 5, 2023 · 0 comments
Open

Rendering issue on the console #16

aptly-io opened this issue Mar 5, 2023 · 0 comments

Comments

@aptly-io
Copy link
Owner

aptly-io commented Mar 5, 2023

Likely cause by special characters in the note

    5. pancake-ID [email protected], 
      add name            : [email protected]
      add secret          : *******
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/users/u1/pwsync/pwsync/main.py", line 244, in <module>
    main()
  File "/users/u1/pwsync/pwsync/main.py", line 240, in main
    console_sync(query_info, syncer, run_options, to_dataset)
  File "/users/u1/pwsync/pwsync/console.py", line 279, in console_sync
    _sync_section("create", query_info, syncer, run_options, to_dataset)
  File "/users/u1/pwsync/pwsync/console.py", line 253, in _sync_section
    section_folder = _print_ft_element(
  File "/users/u1/pwsync/pwsync/console.py", line 139, in _print_ft_element
    print_ft(HTML(f"      <info>new {prop:<16}: </info>{_offset_ft(28, new_value).lstrip()}"), style=STYLE)
  File "/users/u1/pwsync/.venv/lib/python3.8/site-packages/prompt_toolkit/formatted_text/html.py", line 35, in __init__
    document = minidom.parseString(f"<html-root>{value}</html-root>")
  File "/usr/lib/python3.8/xml/dom/minidom.py", line 1969, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 925, in parseString
    return builder.parseString(string)
  File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 11, column 49
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

No branches or pull requests

1 participant