Automatically trim leading and trailing spaces from FC alias

180
2
06-02-2023 01:40 PM
Status: Closed
Labels (1)
Bud
by
Notable Contributor

ArcGIS Pro 3.1.2; mobile geodatabase

Regarding a table or FC's alias:

Bud_0-1685738090464.png

It seems to be possible to add leading or trailing spaces to the alias:

Bud_1-1685738169831.png

The spaces persist when I hit OK and reopen the Catalog properties.

Could that behavior be changed so that leading and trailing spaces get automatically removed when the user hits OK? I think that would be cleaner.

While this case is rare, I do find I sometimes accidentally leave in a trailing space when removing a word from the end of an alias. So it does happen and could cause confusion.

Thanks.

2 Comments
SSWoodward
Status changed to: Needs Clarification

Thanks for the Idea @Bud ,

Users are able to provide any text string as an alias, including strings that start and end with spaces. 

Altering a valid user input in this way would be an unexpected behavior. 

SSWoodward
Status changed to: Closed