Dimillian / Dimillian/IceCubesApp

Bug: leading whitespace is collapsed to a single space when displaying posts, garbling posts which require indentation (such as Python code)

Open
#2,108 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
7.1k
Forks
720
PR merge metrics
No merged PRs in 30d

Description

Environment:

  • OS: macOS 14.5
  • IceCubesApp version: Version 1.10.42 (2640)

Description

If you write a post like this:

hello
    indentation
        world

Ice Cubes displays it like this

hello
 indentation
 world

An example post which demonstrates the issue:

https://mastodon.social/@glyph/112628092787725236

how it displays in Ice Cubes:

image

and how it displays natively in Mastodon:

image

Related Issues

  • Search that this bugs don't already exist before creating it.

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

Start by reproducing the issue with the linked Mastodon post and compare its rendering in Ice Cubes with the native Mastodon display. Trace the post-rendering path to find where leading whitespace is collapsed; done means indentation is preserved for posts such as the Python example.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.