WebKit Bugzilla
Attachment 368955 Details for
Bug 197570
: Whte spaces are not shown in rendering text plain under locales other than "C" locale.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Simple test program show this problem.
webkit2-loadtext (text/plain), 1.62 KB, created by
Takahide Nojima
on 2019-05-03 11:18:14 PDT
(
hide
)
Description:
Simple test program show this problem.
Filename:
MIME Type:
Creator:
Takahide Nojima
Created:
2019-05-03 11:18:14 PDT
Size:
1.62 KB
patch
obsolete
>#!/usr/bin/env gjs >imports.gi.versions.Gtk = "3.0"; >const Gtk = imports.gi.Gtk; >const WebKit2 = imports.gi.WebKit2; > >const Lang = imports.lang; > >const PlainTextRenderTest = new Lang.Class({ > Name: 'PlainTextRenderTest', > Extends: Gtk.Application, > > // Create the application itself > _init: function() { > this.parent({ > application_id: 'org.example.TextRenderer' }); > > this._display_text="test test test hello world\n" > // Connect 'activate' and 'startup' signals to the callback functions > this.connect('activate', Lang.bind(this, this._onActivate)); > this.connect('startup', Lang.bind(this, this._onStartup)); > }, > > // Callback function for 'activate' signal > _onActivate: function() { > // Present window when active > this._window.present(); > // Load the default home page when active > this._webView.load_plain_text(this._display_text); > }, > > // Callback function for 'startup' signal > _onStartup: function() { > // Create the application window > this._window = new Gtk.ApplicationWindow({ > application: this, > window_position: Gtk.WindowPosition.CENTER, > default_height: 320, > default_width: 320, > border_width: 0, > title: "WebKit PlainTextRenderer"}); > > // Create the WebKit WebView, our window to the web > this._webView = new WebKit2.WebView(); > // Add the box to the window > this._window.add(this._webView); > > // Show the window and all child widgets > this._window.show_all(); > }, > >}); > >// Run the application >let app = new PlainTextRenderTest(); >app.run(ARGV);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 197570
: 368955