Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Yet Another WebDialog Gotcha
-
Ruby handles text files correctly on both Windows and Mac. The line separator is the newline character (10, '\n'), regardless of platform.
This does not extend to text retrieved from a WebDialog textarea widget, which will be delimited with newlines on a Mac, with return/newline pairs on a PC. This little bit of extra code is needed:
text = web_dialog.get_element_value( 'textarea_id' ) text.gsub!( /\r\n/, "\n" ) # needed extra!Thank Todd Burch for his Mac support.
-
@martinrinehart said:
Yet Another WebDialog Gotcha
Seems to be annogolous with...
@unknownuser said:
Yet another Microsoft Windows Bug
...yes web dialogs are quite the cruel irony of SketchUp i would say. We sure could use a good ol built-in GUI about now.
Advertisement