Illegal symbols
 
Notifications
Clear all

Illegal symbols

6 Posts
2 Users
0 Reactions
185 Views
(@di_user)
Active Member Registered
Joined: 2 years ago
Posts: 5
Topic starter  

My old Dell notebook has a wifi module: "Dell Wireless 1703 802.11b|g|n [2.4GHz]"
and DesktopInfo can't display it normally (in one row, not three).

Need help.


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

The pipe symbol '|' is used by DTI to denote a new line in the display template. There's an undocumented common option you can use to disable that for a single item called multirow.

comment = text:this|is|multirow, multirow:0


   
ReplyQuote
(@di_user)
Active Member Registered
Joined: 2 years ago
Posts: 5
Topic starter  

Notebook has two network interfaces: lan and wifi.
My config line:

NETWORKINTERFACES=interval:30,operstatus:1,iftype:6 23 71,row-text:%2,display:%3|%8/%10, %24[1.0B]Bps

How to use your advice?


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

hrm.... It doesn't work well in that case. Need to find a way to transform the raw data before it gets to the display.

Regular expressions here we come.....


   
ReplyQuote
(@di_user)
Active Member Registered
Joined: 2 years ago
Posts: 5
Topic starter  

Maybe simply perform the pre-formatting of variables? (replace "|" with "/", for example).


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1322
 

that's the plan... regular expressions is how we'll do it.


   
ReplyQuote
Glenn's Page