Skip to content

add no-collapse option #7

@bogdanstefann

Description

@bogdanstefann

Hello,

I am facing the same issue as here:
https://unix.stackexchange.com/questions/35670/how-to-insert-tab-character-in-dialog

The text can't contain additional spaces or tabs, those being stripped.

The solution is to add an additional argument to the dialog called --no-collapse.

The following code should do it.

in lib/mrdialog/mrdialog.rb add a new attribute

#
# Allows insertion of multiple spaces or tabs
# 
attr_accessor :no_collapse

in lib/mrdialog/mrdialog.rb inside option_string method

if @no_collapse
  ostring += "--no-collapse "
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions