Skip to content

Linux: Leading spaces of shared text get stripped #226

@zathras

Description

@zathras

System info

Issue occurs on: Linux
Plugin name: share_plus
Plugin version: 2.0.2
Flutter doctor output:

[✓] Flutter (Channel stable, 2.0.5, on Linux, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/linux#android-setup for
      more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2020.3)
[✓] Connected device (2 available)
(it's wrong about Android Studio)

Steps to Reproduce

    Share.share('a\n  b\n\tc');

Launches a compose e-mail window (with Thunderbird, in my case), but the indentation is lost. I see:

a
b
c

instead of

a
  b
        c

Maybe Thunderbird needs to be told that the message is plain text, and not HTML?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglinuxshare_plusFeature, Enhancement, Bug Fixes for Share Plus Plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions